From 6248dec1b4f69d26d1687ab9b3d0e87a81f10c42 Mon Sep 17 00:00:00 2001 From: Keir Fraser Date: Thu, 2 May 2013 21:04:08 +0100 Subject: [PATCH] x86: Fix __prepare_to_wait() asm test for stack size Signed-off-by: Keir Fraser --- xen/common/wait.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/xen/common/wait.c b/xen/common/wait.c index 4d6924fd27..3c9366c978 100644 --- a/xen/common/wait.c +++ b/xen/common/wait.c @@ -145,7 +145,7 @@ static void __prepare_to_wait(struct waitqueue_vcpu *wqv) "push %%rax; push %%rbx; push %%rdx; " "push %%rbp; push %%r8; push %%r9; push %%r10; push %%r11; " "push %%r12; push %%r13; push %%r14; push %%r15; call 1f; " - "1: addq $2f-1b,(%%rsp); sub %%esp,%%ecx; cmp %3,%%ecx; jbe 3f; " + "1: addq $2f-1b,(%%rsp); sub %%esp,%%ecx; cmp %3,%%ecx; ja 3f; " "mov %%rsp,%%rsi; 2: rep movsb; mov %%rsp,%%rsi; 3: pop %%rax; " "pop %%r15; pop %%r14; pop %%r13; pop %%r12; " "pop %%r11; pop %%r10; pop %%r9; pop %%r8; " -- 2.30.2